package cc.linker.steplink.crm.merchant.dao;

import cc.linker.steplink.crm.merchant.pojo.ContentPo;

import java.util.List;
import java.util.Map;

public interface ContentMapper {

    void insert(Map<String, Object> params);

    void update(Map<String, Object> params);

    List<Map<String, Object>> getContentList(Map<String, Object> params);

    void updateStatus(Map<String, Object> params);

    void delete(Map<String, Object> params);

    void deleteContentColumn(Map<String, Object> params);

    void insertContentColumn(Map<String, Object> params);

    List<ContentPo> contentList(Map<String, Object> params);

    ContentPo contentInfo(Map<String, Object> params);

    Integer getResCount(String resId);

    List<Long> getColumnContentList(Long columnId);

    void updatePurchase(Map<String, Object> params);

    void setFree(Map<String, Object> params);

    void setSerialNumByColumnIdAndContentId(Map<String, Object> params);

    void updateSerialNumByColumnIdAndContentId(Map<String, Object> params);

    Integer getSerialNumByColumnIdAndContentId(Map<String, Object> params);

    Integer getMaxSerialNumByColumnId(Map<String, Object> params);

    Integer getColumnIdByContentId(Map<String, Object> params);

    Map<String, Object> getContentCompleteByContentId(Integer contentId);

    Map<String, Object> getContentInfoByContentId(String contentId);

    List<Long> getGroupByGoodsId(Long goodsId);

    Long getGoodsIdByContentId(String contentId);
}
